import logo from "@/assets/images/zhongguoyidong.svg";

const namespaced = true;
const state = {
  appInfo: {
    appName: "智能教练",
    appLogo: logo,
    appLogoColor: "",
    appDesc: "",
    appId: "1",
  },
};
// getters
const getters = {
  getAppInfo: (state) => state.appInfo,
};

const actions = {
  setAppInfo({ commit }, payload) {
    commit("SET_APP_INFO", payload);
  },
};

const mutations = {
  SET_APP_INFO(state, payload) {
    state.appInfo = payload;
  },
};

export default {
  namespaced,
  state,
  getters,
  actions,
  mutations,
};
